package kr.co.sdsway2.dao;

import java.util.List;

import kr.co.sdsway2.common.AbstractDAO;
import kr.co.sdsway2.vo.AvatarInfVO;

import org.springframework.stereotype.Repository;

@Repository
public class AvatarInfDAO extends AbstractDAO {

	/** INSERT */
	public void insertAvatarInf(AvatarInfVO inVO) {
		getSqlMapClientTemplate().insert("insertAvatarInf", inVO);
	}

	/** UPDATE */
	public void updateAvatarInf(AvatarInfVO inVO) {
		getSqlMapClientTemplate().update("updateAvatarInf", inVO);
	}

	/** DELETE */
	public void deleteAvatarInf(AvatarInfVO inVO) {
		getSqlMapClientTemplate().update("deleteAvatarInf", inVO);
	}

	/** SELECT */
	public AvatarInfVO getAvatarInf(AvatarInfVO inVO) {
		return (AvatarInfVO)getSqlMapClientTemplate().queryForList("getAvatarInf", inVO);
	}

	/** SELECT LIST */
	@SuppressWarnings("unchecked")
	public List<AvatarInfVO> getAvatarInfList() {
		return (List<AvatarInfVO>)getSqlMapClientTemplate().queryForList("getAvatarInfList");
	}
}
